package cn.bobohost.market.service;

import cn.bobohost.market.pojo.Employee;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * 员工管理的业务层接口
 */
public interface EmployeeService {


    /**
     * 分页列表查询员工
     * @param searchData
     * @param currentPage
     * @param pageSize
     * @return
     */
    Page findEmployeeListPage(Employee searchData, int currentPage, int pageSize);

    /**
     * 保存一个员工
     * @param employee
     */
    void saveEmployee(Employee employee);

    /**
     * 更新
     * @param employee
     */
    void updateEmployee(Employee employee);

    /**
     * 删除员工
     * @param id
     */
    void deleteEmployeeById(String id);

    /**
     *
     * @param account
     * @param password
     * @return
     */
    Employee findEmpolyeeByAccountAndPassword(String account,String password);
}
